<template>
	<view>
		<image src="../../../static/me/bg1.jpg" mode="" style="position: fixed;top: 0; left: 0;width: 100vw; height: 100vh;"></image>
		<view style="z-index: 100;position: absolute;width: 100vw;">
			<view style="padding: 0 10px;">
				<view>
					<view>
						<text style="font-size: 50rpx;">总共送出水桶 {{ workerTaskTotal.totalBucket }}</text>
					</view>
					<view>
						<text style="font-size: 50rpx;">总共收回空桶 {{ workerTaskTotal.totalReceiveEmptyBucket }}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<!-- 员工送水记录统计 -->
<script>
export default {
	data() {
		return {
			workerTaskTotal: {
				totalBucket: 0,
				totalReceiveEmptyBucket: 0,
				userInfo: null
			}
		};
	},
	onShow() {
		this.getWorkerTaskTotal();
	},
	methods: {
		getWorkerTaskTotal() {
			let that = this;
			that.$request('/taskLog/statistics', 'get').then(result => {
				that.workerTaskTotal = result.data;
			});
		}
	}
};
</script>

<style lang="scss"></style>
